--- 战斗主类
---
--- @class FightGroup
FightGroup = Class("FightGroup")
local FightGroup = FightGroup

--- @public
--- @return FightGroup
function FightGroup:ctor(team, site)
    --[[
    * 小组编号
    */]]
    self.groupId = 0;
    ---@type table<number,Fighter>
    self.fighters = {};

    -- 小组虚拟的一个战斗对象 */
    --- @type Fighter
    self.groupFighter = Fighter.New();

    -- 当前回合是不是释放了 小组技能 */
    ---@type boolean
    self.groupSkillRound = false;

    ---@type table<number,table<number,Fighter>>
    self.professionAmountMap = {};


end
--重置对象信息

function self:addFighter(fighter)
    fighter.setFightGroup(self);
    if fighter:isGroupFighter() then
        self.groupFighter = fighter;
        return ;
    end
    table.insert(fighters, fighter);
    local f_heroType = fighter.heroBean.F_HeroType;
    self.professionAmountMap[f_heroType] = {}
    local list = self.professionAmountMap[f_heroType];
    table.insert(list, fighter);

end
function self:ckearGroupSkillRound()
    self.groupSkillRound = false;
end